#include "newproject.h"
#include "ui_newproject.h"

newProject::newProject(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::newProject)
{
    ui->setupUi(this);
}

newProject::~newProject()
{
    delete ui;
}

void newProject::on_cancelButton_clicked()
{
    close();
}

void newProject::on_commitButton_clicked()
{
    close();
    emit messageSent(args);
}

void newProject::on_name_editingFinished()
{
    args.proName = ui->name->text();
}

void newProject::on_width_editingFinished()
{
    args.width = ui->width->text().toInt();
}

void newProject::on_height_editingFinished()
{
    args.height = ui->height->text().toInt();
}

void newProject::on_fps_editingFinished()
{
    args.fps = ui->fps->text().toInt();
}
